package com.wukaige.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 城市表
 * </p>
 *
 * @author wukaige
 * @since 2021-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("city")
public class City implements Serializable {

    private static final long serialVersionUID = 1L;
    @JsonProperty("value")
    @TableId("id")
    private Integer id;

    @TableField("pid")
    private Integer pid;
    @JsonProperty("label")
    @TableField("cityname")
    private String cityname;

    @TableField("type")
    private Integer type;

    @JsonProperty("children")
    @TableField(exist = false)
    private List<City> cityList;
}
